<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libBigWig: bwWriteBuffer_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libBigWig
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">bwWriteBuffer_t Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This is only needed for writing bigWig files (and won't be created otherwise) This should be removed from <a class="el" href="bigWig_8h.html">bigWig.h</a>.  
 <a href="structbwWriteBuffer__t.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="bigWig_8h_source.html">bigWig.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ae1ca600e3db29278223430e6fea1ce7a"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#ae1ca600e3db29278223430e6fea1ce7a">nBlocks</a></td></tr>
<tr class="separator:ae1ca600e3db29278223430e6fea1ce7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39aa0458ab26dbbc1e0edf47eb7f903d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a39aa0458ab26dbbc1e0edf47eb7f903d">blockSize</a></td></tr>
<tr class="separator:a39aa0458ab26dbbc1e0edf47eb7f903d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bd332ebac62207317a25ca548099c51"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a0bd332ebac62207317a25ca548099c51">nEntries</a></td></tr>
<tr class="separator:a0bd332ebac62207317a25ca548099c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a395634c6f60756abb87013a11f68b293"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a395634c6f60756abb87013a11f68b293">runningWidthSum</a></td></tr>
<tr class="separator:a395634c6f60756abb87013a11f68b293"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e80409d671ddba8f507c5b7a388d27c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a1e80409d671ddba8f507c5b7a388d27c">tid</a></td></tr>
<tr class="separator:a1e80409d671ddba8f507c5b7a388d27c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab882889bfdaaa12022921a94d1d84c91"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#ab882889bfdaaa12022921a94d1d84c91">start</a></td></tr>
<tr class="separator:ab882889bfdaaa12022921a94d1d84c91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb9f5c5894ab9bfaf8b80c7d4a161644"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#acb9f5c5894ab9bfaf8b80c7d4a161644">end</a></td></tr>
<tr class="separator:acb9f5c5894ab9bfaf8b80c7d4a161644"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a8765d6c12d911b92fc0e6546a2e236"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a2a8765d6c12d911b92fc0e6546a2e236">span</a></td></tr>
<tr class="separator:a2a8765d6c12d911b92fc0e6546a2e236"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87bce47919a2ad1182e7b987dca43ebc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a87bce47919a2ad1182e7b987dca43ebc">step</a></td></tr>
<tr class="separator:a87bce47919a2ad1182e7b987dca43ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f43dfc468bb4e17524bffda40e24122"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a1f43dfc468bb4e17524bffda40e24122">ltype</a></td></tr>
<tr class="separator:a1f43dfc468bb4e17524bffda40e24122"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fad0d406ef58232faaef3e0b2127cec"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a6fad0d406ef58232faaef3e0b2127cec">l</a></td></tr>
<tr class="separator:a6fad0d406ef58232faaef3e0b2127cec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbd1ed0f439084b2b6839ddc5609e793"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#adbd1ed0f439084b2b6839ddc5609e793">p</a></td></tr>
<tr class="separator:adbd1ed0f439084b2b6839ddc5609e793"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cfb07b3c08323e7d0131cfb9c33786b"><td class="memItemLeft" align="right" valign="top">bwLL *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a2cfb07b3c08323e7d0131cfb9c33786b">firstIndexNode</a></td></tr>
<tr class="separator:a2cfb07b3c08323e7d0131cfb9c33786b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c00fb5d95db3f13cae4951bb1e128b1"><td class="memItemLeft" align="right" valign="top">bwLL *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a4c00fb5d95db3f13cae4951bb1e128b1">currentIndexNode</a></td></tr>
<tr class="separator:a4c00fb5d95db3f13cae4951bb1e128b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aeaadbebbb7aa06d97743ef41bafb4a"><td class="memItemLeft" align="right" valign="top">bwZoomBuffer_t **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a2aeaadbebbb7aa06d97743ef41bafb4a">firstZoomBuffer</a></td></tr>
<tr class="separator:a2aeaadbebbb7aa06d97743ef41bafb4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0482ff2c9325a3357920c36be45120e9"><td class="memItemLeft" align="right" valign="top">bwZoomBuffer_t **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a0482ff2c9325a3357920c36be45120e9">lastZoomBuffer</a></td></tr>
<tr class="separator:a0482ff2c9325a3357920c36be45120e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f12e5edc4c41f8c6e882016309ce115"><td class="memItemLeft" align="right" valign="top">uint64_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a4f12e5edc4c41f8c6e882016309ce115">nNodes</a></td></tr>
<tr class="separator:a4f12e5edc4c41f8c6e882016309ce115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1418d0358e90eea7fda9cd51e90be8e5"><td class="memItemLeft" align="right" valign="top">uLongf&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#a1418d0358e90eea7fda9cd51e90be8e5">compressPsz</a></td></tr>
<tr class="separator:a1418d0358e90eea7fda9cd51e90be8e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd2828a43db06568f73e3d5d0055b7d5"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbwWriteBuffer__t.html#afd2828a43db06568f73e3d5d0055b7d5">compressP</a></td></tr>
<tr class="separator:afd2828a43db06568f73e3d5d0055b7d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This is only needed for writing bigWig files (and won't be created otherwise) This should be removed from <a class="el" href="bigWig_8h.html">bigWig.h</a>. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a39aa0458ab26dbbc1e0edf47eb7f903d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39aa0458ab26dbbc1e0edf47eb7f903d">&#9670;&nbsp;</a></span>blockSize</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::blockSize</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The maximum number of children </p>

</div>
</div>
<a id="afd2828a43db06568f73e3d5d0055b7d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd2828a43db06568f73e3d5d0055b7d5">&#9670;&nbsp;</a></span>compressP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* bwWriteBuffer_t::compressP</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A compressed buffer of size compressPsz </p>

</div>
</div>
<a id="a1418d0358e90eea7fda9cd51e90be8e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1418d0358e90eea7fda9cd51e90be8e5">&#9670;&nbsp;</a></span>compressPsz</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uLongf bwWriteBuffer_t::compressPsz</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The size of the compression buffer </p>

</div>
</div>
<a id="a4c00fb5d95db3f13cae4951bb1e128b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c00fb5d95db3f13cae4951bb1e128b1">&#9670;&nbsp;</a></span>currentIndexNode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bwLL* bwWriteBuffer_t::currentIndexNode</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The last index node in a linked list </p>

</div>
</div>
<a id="acb9f5c5894ab9bfaf8b80c7d4a161644"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb9f5c5894ab9bfaf8b80c7d4a161644">&#9670;&nbsp;</a></span>end</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::end</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The end position of the block </p>

</div>
</div>
<a id="a2cfb07b3c08323e7d0131cfb9c33786b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cfb07b3c08323e7d0131cfb9c33786b">&#9670;&nbsp;</a></span>firstIndexNode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bwLL* bwWriteBuffer_t::firstIndexNode</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The first index node in the linked list </p>

</div>
</div>
<a id="a2aeaadbebbb7aa06d97743ef41bafb4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aeaadbebbb7aa06d97743ef41bafb4a">&#9670;&nbsp;</a></span>firstZoomBuffer</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bwZoomBuffer_t** bwWriteBuffer_t::firstZoomBuffer</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The first node in a linked list of leaf nodes </p>

</div>
</div>
<a id="a6fad0d406ef58232faaef3e0b2127cec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fad0d406ef58232faaef3e0b2127cec">&#9670;&nbsp;</a></span>l</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::l</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The current size of p. This and the type determine the number of items held </p>

</div>
</div>
<a id="a0482ff2c9325a3357920c36be45120e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0482ff2c9325a3357920c36be45120e9">&#9670;&nbsp;</a></span>lastZoomBuffer</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bwZoomBuffer_t** bwWriteBuffer_t::lastZoomBuffer</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The last node in a linked list of leaf nodes </p>

</div>
</div>
<a id="a1f43dfc468bb4e17524bffda40e24122"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f43dfc468bb4e17524bffda40e24122">&#9670;&nbsp;</a></span>ltype</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t bwWriteBuffer_t::ltype</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The type of the last entry added </p>

</div>
</div>
<a id="ae1ca600e3db29278223430e6fea1ce7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1ca600e3db29278223430e6fea1ce7a">&#9670;&nbsp;</a></span>nBlocks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t bwWriteBuffer_t::nBlocks</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The number of blocks written </p>

</div>
</div>
<a id="a0bd332ebac62207317a25ca548099c51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bd332ebac62207317a25ca548099c51">&#9670;&nbsp;</a></span>nEntries</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t bwWriteBuffer_t::nEntries</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The number of entries processed. This is used for the first contig and determining how the zoom levels are computed </p>

</div>
</div>
<a id="a4f12e5edc4c41f8c6e882016309ce115"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f12e5edc4c41f8c6e882016309ce115">&#9670;&nbsp;</a></span>nNodes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t* bwWriteBuffer_t::nNodes</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The number of leaf nodes per zoom level, useful for determining duplicate levels </p>

</div>
</div>
<a id="adbd1ed0f439084b2b6839ddc5609e793"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbd1ed0f439084b2b6839ddc5609e793">&#9670;&nbsp;</a></span>p</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* bwWriteBuffer_t::p</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A buffer of size hdr-&gt;bufSize </p>

</div>
</div>
<a id="a395634c6f60756abb87013a11f68b293"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a395634c6f60756abb87013a11f68b293">&#9670;&nbsp;</a></span>runningWidthSum</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t bwWriteBuffer_t::runningWidthSum</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The running sum of the entry widths for the first contig (again, used for the first contig and computing zoom levels) </p>

</div>
</div>
<a id="a2a8765d6c12d911b92fc0e6546a2e236"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a8765d6c12d911b92fc0e6546a2e236">&#9670;&nbsp;</a></span>span</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::span</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The span of each entry, if applicable </p>

</div>
</div>
<a id="ab882889bfdaaa12022921a94d1d84c91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab882889bfdaaa12022921a94d1d84c91">&#9670;&nbsp;</a></span>start</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::start</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The start position of the block </p>

</div>
</div>
<a id="a87bce47919a2ad1182e7b987dca43ebc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87bce47919a2ad1182e7b987dca43ebc">&#9670;&nbsp;</a></span>step</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::step</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The step size, if applicable </p>

</div>
</div>
<a id="a1e80409d671ddba8f507c5b7a388d27c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e80409d671ddba8f507c5b7a388d27c">&#9670;&nbsp;</a></span>tid</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t bwWriteBuffer_t::tid</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The current TID that's being processed </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="bigWig_8h_source.html">bigWig.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 8 2020 13:48:36 for libBigWig by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
